package actionPattern.strategy;

public class Client {

    public static void main(String[] args) {
        Beaf beaf = new Beaf(500);
        BeafCooker cooker;

        //小炒黄牛肉
        cooker = new BeafCooker(new Fry());
        cooker.cook(beaf);

        //水煮牛肉
        cooker = new BeafCooker(new Poach());
        cooker.cook(beaf);

        //烤牛排
        cooker = new BeafCooker(new Grill());
        cooker.cook(beaf);
    }
}
